package com.byedu.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by jason on 2017/7/5.
 */
public class CommonDateUtil {
    public static final String YYYYMMDDHHMMSSSSS = "yyyyMMddHHmmssSSS";

    public static String formatDateToString(Date date, String pattern) {
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.format(date);
    }

}
